package cn.wolfcode.trip.base.mapper;

import cn.wolfcode.trip.base.domain.StrategyAttention;
import org.apache.ibatis.annotations.Param;

import java.util.List;

public interface StrategyAttentionMapper {
    void deleteByPrimaryKey(Long id);

    void insert(StrategyAttention record);

    StrategyAttention selectByPrimaryKey(Long id);

    List<StrategyAttention> selectAll();

    void updateByPrimaryKey(StrategyAttention record);

    StrategyAttention selectCollect(StrategyAttention attention);

    void deleteCollect(StrategyAttention attention);

    void insertRelation(@Param("commentId") Long commentId, @Param("userId") Long userId);

    int selectLikeCountByCommentId(StrategyAttention attention);

    void deleteChose(@Param("commentId") Long commentId, @Param("userId") Long userId);

}